/*
 * Copyright (c) 2019, 2025 Oracle and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import io.helidon.common.features.api.Aot;
import io.helidon.common.features.api.Features;
import io.helidon.common.features.api.HelidonFlavor;

/**
 * MP Rest client.
 *
 * @see org.eclipse.microprofile.rest.client
 */
@Features.Name("REST Client")
@Features.Description("MicroProfile REST client spec implementation")
@Features.Flavor(HelidonFlavor.MP)
@Features.Path("REST Client")
@Features.Aot(description = "Does not support execution of default methods on interfaces.")
@SuppressWarnings({ "requires-automatic", "requires-transitive-automatic" })
module io.helidon.microprofile.restclient {

    requires io.helidon.common.context;
    requires jersey.mp.rest.client;

    requires static io.helidon.common.features.api;

    requires transitive jakarta.ws.rs;
    requires transitive jersey.common;
    requires transitive microprofile.rest.client.api;

    exports io.helidon.microprofile.restclient;
    // needed for jersey injection
    opens io.helidon.microprofile.restclient to org.glassfish.hk2.utilities,weld.core.impl, io.helidon.microprofile.cdi;

    provides org.eclipse.microprofile.rest.client.spi.RestClientListener
            with io.helidon.microprofile.restclient.MpRestClientListener;
    provides org.glassfish.jersey.internal.spi.ForcedAutoDiscoverable
            with  io.helidon.microprofile.restclient.HelidonRequestHeaderAutoDiscoverable;

}
